# !/usr/bin/env python3
# -*- coding: utf-8 -*-
###----------------------------------------------------1、文件说明----------------------------------------------------###
'''
* 说明：操作docx的库的学习笔记
* 时间：2021-1-18
* 文件：
* 作者：whg
* 备注：
'''
###----------------------------------------------------2、库导入----------------------------------------------------###
import docx
###----------------------------------------------------3、参数配置----------------------------------------------------###
###----------------------------------------------------4、主体程序----------------------------------------------------###

class WDocx(object):
    '''
    操作docx的类
    '''
    def __init__(self, filename=""):
        self.filename = filename
        self.docx = docx.Document(self.filename)

    def GetData(self):
        data = ""
        for p in self.docx.paragraphs:
            data += p.text
            # data += "\n"
        return data


if __name__ == '__main__':
    print('Start Program...\r\n')


    print('\nSuccess ...')